// plugins/rem.client.ts
export default defineNuxtPlugin(() => {
    const setRem = () => {
        const html = document.documentElement
        let width = html.clientWidth
        if (width > 750) width = 750
        html.style.fontSize = (width / 7.5) + 'px'
    }
    setRem()
    window.addEventListener('resize', () => {
        setTimeout(setRem, 300)
    })
})
